package moxl.relaxng.validation.testsuite.testsuitetests;

import org.junit.runner.Description;
import org.junit.runner.Runner;
import org.junit.runner.notification.Failure;
import org.junit.runner.notification.RunNotifier;

public class RelaxNgTestCaseRunner extends Runner
{
	private final Description description;
	@SuppressWarnings("unused")
    private final RelaxNgTestCase relaxNgTestCase;

	public RelaxNgTestCaseRunner(Description description, RelaxNgTestCase relaxNgTestCase)
    {
		this.description = description;
		this.relaxNgTestCase = relaxNgTestCase;
    }

	@Override
	public Description getDescription()
	{
		return description;
	}

	@Override
	public void run(RunNotifier notifier)
	{
		notifier.fireTestStarted(description);
		// Here's where do the magic...
		notifier.fireTestFailure(new Failure(description, new AssertionError()));
		notifier.fireTestFinished(description);
	}

}
